<template>
  <div class="person"></div>
</template>

<script lang="ts" setup name="Person">
  import { type PersonInter, type Persons } from "@/types";
  // let person: PersonInter = { id: "Java01", name: "张三", age: 77 };

  let personList: Array<PersonInter> = [
    { id: "Java01", name: "张三", age: 77 },
    { id: "Java01", name: "李四", age: 66 },
    { id: "Java01", name: "王五", age: 55 },
  ];

  let personList2: Persons = [
    { id: "Java01", name: "张三", age: 77 },
    { id: "Java01", name: "李四", age: 66 },
    { id: "Java01", name: "王五", age: 55 },
  ];
</script>

<style scoped>
  .person {
    background-color: aqua;
    box-shadow: 0 0 10px;
    border-radius: 10px;
    padding: 20px;
  }

  button {
    margin-left: 5px;
    margin-right: 5px;
  }
</style>
